const state = {
	userId: '',
	userName: '', //用户名
	avatar: '', //头像
	sex: '',
	phonenumber: '', //手机号码
	areaId: '', //区域id
	areaName: '', //区域id
	amount: '', //我的钱包
	wxAccount: '',//微信账号
	userExpireDateNumber: '', //获取用户有效期
	userUseNumber: '' //获取用户使用次数
}

const getters = {

}


const mutations = {
	setUserId(state, userId) {
		state.userId = userId;
	},

	setUserName(state, userName) {
		state.userName = userName;
	},

	setAvatar(state, avatar) {
		state.avatar = avatar;
	},

	setSex(state, sex) {
		state.sex = sex;
	},

	setPhonenumber(state, phonenumber) {
		state.phonenumber = phonenumber;
	},
	
	setAreaId(state, areaId) {
		state.areaId = areaId;
	},
	
	setAreaName(state, areaName) {
		state.areaName = areaName;
	},
	
	setAmount(state, amount) {
		state.amount = amount;
	},
	
	setWxAccount(state, wxAccount) {
		state.wxAccount = wxAccount;
	},
	
	setUserExpireDateNumber(state, userExpireDateNumber) {
		state.userExpireDateNumber = userExpireDateNumber;
	},
	
	setUserUseNumber(state, userUseNumber) {
		state.userUseNumber = userUseNumber;
	},
}

const actions = {
	setUserId({
		commit
	}, payload) {
		commit('setUserId', payload);
	},


	setUserName({
		commit
	}, payload) {
		commit('setUserName', payload);
	},

	setAvatar({
		commit
	}, payload) {
		commit('setAvatar', payload);
	},

	setSex({
		commit
	}, payload) {
		commit('setSex', payload);
	},
	
	setPhonenumber({
		commit
	}, payload) {
		commit('setPhonenumber', payload);
	},
	
	setAreaId({
		commit
	}, payload) {
		commit('setAreaId', payload);
	},
	
	setAreaName({
		commit
	}, payload) {
		commit('setAreaName', payload);
	},
	
	setAmount({
		commit
	}, payload) {
		commit('setAmount', payload);
	},
	
	setWxAccount({
		commit
	}, payload) {
		commit('setWxAccount', payload);
	},
	
	setUserExpireDateNumber({
		commit
	}, payload) {
		commit('setUserExpireDateNumber', payload);
	},
	
	setUserUseNumber({
		commit
	}, payload) {
		commit('setUserUseNumber', payload);
	}
}

export default {
	state,
	getters,
	mutations,
	actions
}